#include <boost/regex.hpp>
#include <iostream>

int main()
{
	std::string s = "David Hilbert";
	boost::regex expr("\\w+\\s\\w+");
	std::cout << std::boolalpha << boost::regex_match(s,expr) << std::endl;
}